 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
    <link rel="stylesheet" type="text/css" href="/css/mypage.css">

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
	
	<!--컨텐츠-->
	<div id="content">
		<!--휘장-->
		<div class="keybox1"> </div>
		<!--//휘장-->
		
		<p class="key_visual"><img src="/images/sub/mypage/mypage_visual.png" alt="마이페이지" /></p>

		<!--왼쪽 컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->
            
            <!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme2.php'; ?>
			<!--//추천테마-->
            
            <!--오늘의 추천! 무료운세-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/free.php'; ?>
			<!--//오늘의 추천! 무료운세-->

			<!--고객센터-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/cs.php'; ?>
			<!--//고객센터_추가-->
		</div>
		<!--//왼쪽 컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="cont">
			<div class="mypage">
				<h3><img src="/images/mypage/sstit_pointlist.gif" alt="포인트내역" /></h3>
				<!--가입상품 요약 정보 (include mypage/summary_inc.v.php-->
				<?php echo $INC_SUMMARY; ?>
				<!--//가입상품 요약 정보-->

				
				<div class="text">
					<ul>
						<li>운세의신에서 적립 / 사용하신 포인트 내역을 확인하실 수 있습니다.</li>
						<li class="point">포인트는 캐쉬 소진 후 사용 가능합니다.</li>
						<li>적립한 포인트로 유료운세 서비스를 이용가능합니다. (일부 상품 제외)</li>
						<li>포인트의 유효기간은 1년입니다.</li>
					</ul>
				</div>
				
				<div class="pointlist">
					<h4 class="title">포인트 사용내역</h4>
					<table width="100%" summary="포인트사용내역 안내" cellpadding="0" cellspacing="0">
						<caption class="blind">포인트사용내역 안내</caption>
						<colgroup>
							<col width="15%" />
							<col width="15%" />
							<col width="*" />
							<col width="15%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="date">날짜</th>
								<th scope="col" class="pay">유형</th>
								<th scope="col" class="tle">내용</th>
								<th scope="col" class="use">포인트내역(P)</th>
							</tr>
						</thead>
						<tbody>
							<?	foreach ($list as $item) : ?>
							<tr>
								<td class="date"><?=substr($item['create_dt'],0,10)?></td>
								<td class="pay"><?=$item['point'] > 0 ? '적립' : '사용'?></td>
								<td class="tle"><?=$item['subject']?><?=$item['point_type']?></td>
								<td class="use"><?=number_format($item['point'])?></td>
							</tr>
							<?	endforeach ?>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="4" class="bt_area"></td>
							</tr>
							<tr>
								<td colspan="4">
									<?	if (!empty($navi['prev_page_link'])) : ?>
										<a href="/<?=$navi['prev_page_link']?>" class="btn"><img src="/images/common/board/page_prev.png" alt="이전 페이지로" /></a> 
									<?	endif ?>
									
									<?	for ($i = 0; $i < count($navi['page_nums']); $i++) : ?>
									<?		if (!empty($navi['page_nums'][$i]['url'])) : ?>
												<a href="/<?=$navi['page_nums'][$i]['url']?>"><?=$navi['page_nums'][$i]['page_no']?></a>
									<?		else : ?>
												<a href="javascript:;" class="over"><?=$navi['page_nums'][$i]['page_no']?></a>
									<?		endif ?>
									<?	endfor ?>

									<?	if (!empty($navi['page_count'])) : ?>
										...<a href="/<?=$navi['page_count_link']?>"><?=$navi['page_count']?></a>
									<?	endif ?>

									<?	if (!empty($navi['next_page_link'])) : ?>
										<a href="/<?=$navi['next_page_link']?>" class="btn"><img src="/images/common/board/page_next.png" alt="다음 페이지로" /></a>
									<?	endif ?>
								</td>
							</tr>
						</tfoot>
					</table>
				</div><!--//pointlist--> 
				
				<div class="last_cashlist">
					<h4 class="title">소멸예정 포인트</h4>
					<table width="100%" summary="소멸예정 포인트" cellpadding="0" cellspacing="0">
						<caption class="blind">소멸예정 포인트</caption>
						<colgroup>
							<col width="25%" />
							<col width="25%" />
							<col width="25%" />
							<col width="25%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="date">적립일</th>
								<th scope="col" class="pay">적립포인트(P)</th>
								<th scope="col" class="use">잔여포인트(P)</th>
								<th scope="col" class="last_date">소멸예정일</th>
							</tr>
						</thead>
						<tbody>
<?	foreach ($hurry_list as $item) : ?>
							<tr>
								<td class="date"><?=substr($item['create_dt'],0,10)?></td>
								<td class="pay"><?=number_format($item['point'])?></td>
								<td class="use"><?=number_format($item['point_balance'])?></td>
								<td class="last_date"><?=substr($item['end_dt'],0,4).'-'.substr($item['end_dt'],4,2).'-'.substr($item['end_dt'],6,2)?></td>
							</tr>
<?	endforeach ?>
						</tbody>
					</table>
				</div><!--//cashlist--> 

			</div><!--mypage-->
		</div>
		<!--// 메인컨텐츠-->
        <!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
	</div>
	<!--컨텐츠-->

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
</body>
</html>